import visdom
import numpy as np
import time



vis = visdom.Visdom(server='localhost', env='shibie', port=8097)
x,y=0,0
win=vis.line(np.array([y]),np.array([x]))
for i in range(100):
    x=np.array([i])
    time.sleep(0.1)
    y=np.random.randn(1)
    vis.line(y,x,win,update="append")
# vis = visdom.Visdom(server='localhost', port=8097)